﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<InfoTech.Mvc.LanTranh.MucVu.Models.SOTANHIENModel>" %>
<%@ Import Namespace="InfoTech.LanTranh.MucVu.Service" %>
<div class="content-box">
    <div class="content-box-header">
        <h3>
            Tận Hiến</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <% 
            using (Html.BeginForm("UpdateSoTanHien", "GiaDinhCongGiao"))
            {%>
        <%:Html.ValidationSummary()%>
        <%:Html.HiddenFor(c=>c.MATANHIEN) %>
        <%:Html.HiddenFor(c=>c.MAGIAODAN) %>
        <%:Html.HiddenFor(c=>c.Insert) %>
        <table cellspacing="3" cellpadding="3">
            <tr>
                <td align="right" class="cellTitle" valign="middle">
                    Chức Vụ
                </td>
                <td>
                    <div class="editor-field">
                        <%:Html.DropDownListFor(c => c.MACHUCVU, LINHMUC_CHUCVUService.Get_List(), new { style = "width: 200px", @class = "text-input" })%>
                        <%: Html.ValidationMessageFor(model => model.MACHUCVU, "(*)")%>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" class="cellTitle" valign="middle">
                    Ngày
                </td>
                <td>
                    <div class="editor-field">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="editor-field">
                                        <%: Html.DropDownListFor(model => model.NGAY,GIAODANService.Get_List_Days(), new { style = "width: 140px", @class="text-input" })%>
                                        <%: Html.ValidationMessageFor(model => model.NGAY, "(*)")%>
                                    </div>
                                </td>
                                <td>
                                    <div class="editor-field">
                                        <%: Html.DropDownListFor(model => model.THANG,GIAODANService.Get_List_Months(), new { style = "width: 145px", @class="text-input" })%>
                                        <%: Html.ValidationMessageFor(model => model.THANG, "(*)")%>
                                    </div>
                                </td>
                                <td>
                                    <div class="editor-field">
                                        <%: Html.DropDownListFor(model => model.NAM,GIAODANService.Get_List_Years(), new { style = "width: 135px", @class="text-input" })%>
                                        <%: Html.ValidationMessageFor(model => model.NAM, "(*)")%>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" class="cellTitle" valign="middle">
                    Tại
                </td>
                <td>
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.DIADIEM, new { style = "width: 420px", @class="text-input" })%>
                        <%: Html.ValidationMessageFor(model => model.DIADIEM, "(*)")%>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" class="cellTitle" valign="middle">
                    Dòng Tu
                </td>
                <td>
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.DONGTU, new { style = "width: 420px", @class="text-input" })%>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" class="cellTitle" valign="middle">
                    Phục Vụ Tại
                </td>
                <td>
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.PHUCVUTAI, new { style = "width: 420px", @class="text-input" })%>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" class="cellTitle" valign="middle">
                    Đã Hồi Tục
                </td>
                <td>
                    <div class="editor-field">
                        <%: Html.CheckBoxFor(c=>c.HOITUC)%>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="lineRow" colspan="2">
                </td>
            </tr>
            <tr>
                <td align="right" class="cellTitle" valign="middle">
                    <%
                        if (!Model.Insert)
                        {
                    %>
                    Hủy Thông Tin
                    <%:Html.CheckBoxFor(c=>c.Delete) %>
                    <%
                        }
                    %>
                </td>
                <td>
                    <input type="submit" value="Cập nhật" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />
                </td>
            </tr>
        </table>
        <%
            }%>
    </div>
    <!-- End .content-box-content -->
</div>
